package util;

import org.apache.hadoop.util.Tool;

public class BaselineTasking {

	private String jobName;
	private Class<? extends Tool> cls;
	private long pause;
	private String args[];
	
	
	public BaselineTasking(String jobName, Class<? extends Tool> cls, long pause, String[] args) {
		this.jobName = jobName;
		this.pause = pause;
		this.args = args;
		this.cls = cls;
	}
	
	public void setCls(Class<? extends Tool> cls) {
		this.cls = cls;
	}
	public Class<? extends Tool> getCls() {
		return cls;
	}
	public void setPause(long pause) {
		this.pause = pause;
	}
	public long getPause() {
		return pause;
	}
	public void setArgs(String[] args) {
		this.args = args;
	}
	public String[] getArgs() {
		
		String[] newArray = new String[args.length + 1];
		newArray[0] = this.getJobName();
		
		for (int i = 0; i < args.length; i++) {
			newArray[i + 1] = args[i];
		}
		
		return newArray;
	}

	public void setJobName(String jobName) {
		this.jobName = jobName;
	}

	public String getJobName() {
		return jobName;
	}
	
	
}
